package com.winning.dps.ds.config.multiDatasource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * description:
 *
 * @author yanxf@winning.com.cn
 * @date 2020/07/31 10:29
 */
public class DynamicDataSource extends AbstractRoutingDataSource {
  @Override
  protected Object determineCurrentLookupKey() {
    return DataSourceContextHolder.getDB();
  }
}
